package cn.edu.scau.cmi.mengzhuorong.composite.safe;

import java.util.HashSet;
import java.util.Set;

public class Team extends Organization {

	private String name;
	private Set<Organization> children = new HashSet<Organization>();
	
	Team(){
		
	}
	public Team(String name){
		setName(name);
	}
	
	public Organization addChild(Organization child) {
		children.add(child);
		return this;
	}
	public Organization removeChild(Organization child) {
		children.remove(child);
		return this;
	}
	
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Set<Organization> getChild(){
		return children;
	}
	public void setChildren(Set<Organization> children) {
		this.children = children;
	}
	
}
